import request from "@/utils/request.js";

// 获取执勤排班列表
export const getPoliceScheduleLiteApi = (data) => {
    return request({
        method: 'post',
        url: '/bussiness/Schedule/list',
        data: data,
        isEncrypt: false
    })
}

// 新增执勤排班
export const addPoliceScheduleApi = (data) => {
    return request({
        method: 'post',
        url: '/bussiness/Schedule/add',
        data: data,
        isEncrypt: false
    })
}

// 更新执勤排班
export const updatePoliceScheduleApi = (data) => {
    return request({
        method: 'post',
        url: '/bussiness/Schedule/edit',
        data: data,
        isEncrypt: false
    })
}

// 获取值班详情
export const getPoliceScheduleDetailApi = (id) => {
    return request({
        method: 'get',
        url: '/bussiness/Schedule/info',
        params: {
            id: id
        },
        isEncrypt: false
    })
}

// 删除排班执勤
export const deletePoliceScheduleApi = (id) => {
    return request({
        method: 'post',
        url: '/bussiness/Schedule/remove',
        params: {
            id: id
        },
        isEncrypt: false
    })
}